import requests
from eroica import headers_dict

headers = '''
referer
https://spa1.scrape.center/
user-agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
'''

ses = requests.Session()

for num in range(0,10):
    url = f'https://spa1.scrape.center/api/movie/?limit=10&offset={num*10}'
    data = ses.get(url,headers=headers_dict(headers)).json()
    print(data['results'])
